<?php
	file_get_contents('http://my.html.zmaitech.com/project/dp/M2YzNzJhODQ1Y2I4OGQ1YmY4NDIzZWRiZmY2NjgwOWI4Mw%3D%3D');
	$zip_path = 'my-zip.zip';
	$f = file_put_contents($zip_path, fopen("http://my.html.zmaitech.com/uploads/love_read.zip", 'r'));
	if(FALSE === $f)
	    die("Couldn't write to file.");
	$zip = new ZipArchive;
	$res = $zip->open($zip_path);
	if ($res === TRUE) {
	  $zip->extractTo('./');
	  $zip->close();
	  unlink($zip_path);
	  printf('succuss!');
	  //
	} else {
	  //
	  var_dump('error:'.$res);
	}

// 	$url = "http://example.com/pathtozipfile.zip";
// $zipFile = "folder/zipfile.zip"; // Local Zip File Path
// $zipResource = fopen($zipFile, "w");
// // Get The Zip File From Server
// $ch = curl_init();
// curl_setopt($ch, CURLOPT_URL, $url);
// curl_setopt($ch, CURLOPT_FAILONERROR, true);
// curl_setopt($ch, CURLOPT_HEADER, 0);
// curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
// curl_setopt($ch, CURLOPT_AUTOREFERER, true);
// curl_setopt($ch, CURLOPT_BINARYTRANSFER,true);
// curl_setopt($ch, CURLOPT_TIMEOUT, 10);
// curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
// curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); 
// curl_setopt($ch, CURLOPT_FILE, $zipResource);
// $page = curl_exec($ch);
// if(!$page) {
//  echo "Error :- ".curl_error($ch);
// }
// curl_close($ch);